import Layout from '@/layout'

const goodsRouter = [{
    path: '/goods',
    component: Layout,
    redirect: '/goods/library',
    alwaysShow: true, // will always show the root menu
    name: 'goodsLibrary',
    meta: {
        title: '商品管理',
        roles: ['admin', 'editor'], // you can set roles in root nav
        icon: 'el-icon-arrow-right'
    },
    children:[
        {
            path: 'library',
            component: () => import('@/views/goods/library/index'),
            name: 'library',
            meta: { title: '商品库' }
        },
        // {
        //     path: 'category',
        //     component: () => import('@/views/goods/category/index'),
        //     name: 'category',
        //     meta: { title: '商品分类' }
        // },
        // {
        //     path: 'offShelf',
        //     component: () => import('@/views/goods/offShelf/index'),
        //     name: 'offShelf',
        //     meta: { title: '下架商品' }
        // },
        // {
        //     path: 'onShelf',
        //     component: () => import('@/views/goods/onShelf/index'),
        //     name: 'onShelf',
        //     meta: { title: '上架商品' }
        // },
        // {
        //     path: 'suppliersGoods',
        //     component: () => import('@/views/goods/suppliersGoods/index'),
        //     name: 'suppliersGoods',
        //     meta: { title: '供应商商品' }
        // },
        // {
        //     path: 'priceChange',
        //     component: () => import('@/views/goods/priceChange/index'),
        //     name: 'priceChange',
        //     meta: { title: '商品价格变动管理' }
        // },
        // {
        //     path: 'noAutoChangePrice',
        //     component: () => import('@/views/goods/noAutoChangePrice/index'),
        //     name: 'noAutoChangePrice',
        //     meta: { title: '不自动调价管理' }
        // },
        // {
        //     path: 'huadongProductFilter',
        //     component: () => import('@/views/goods/huadongProductFilter/index'),
        //     name: 'huadongProductFilter',
        //     meta: { title: '华东产品过滤' }
        // },
        // {
        //     path: 'supplierRestrictionRecord',
        //     component: () => import('@/views/goods/supplierRestrictionRecord/index'),
        //     name: 'supplierRestrictionRecord',
        //     meta: { title: '供应商限销记录' }
        // },
        // {
        //     path: 'saleControlRecord',
        //     component: () => import('@/views/goods/saleControlRecord/index'),
        //     name: 'saleControlRecord',
        //     meta: { title: '商品控销记录' }
        // },
        // {
        //     path: 'saleRestrictionManagement',
        //     component: () => import('@/views/goods/saleRestrictionManagement/index'),
        //     name: 'saleRestrictionManagement',
        //     meta: { title: '商品限销管理' }
        // },
        // {
        //     path: 'advanceNew',
        //     component: () => import('@/views/goods/advanceNew/index'),
        //     name: 'advanceNew',
        //     meta: { title: '预上架商品库' }
        // },
        // {
        //     path: 'restrictedWhiteList',
        //     component: () => import('@/views/goods/restrictedWhiteList/index'),
        //     name: 'restrictedWhiteList',
        //     meta: { title: '商品限销白名单' }
        // },
        // {
        //     path: 'addWhite',
        //     component: () => import('@/views/goods/addWhite/index'),
        //     name: 'addWhite',
        //     hidden: true,
        //     meta: { title: '添加白名单' }
        // },
        // {
        //     path: 'addRestrictionAgent',
        //     component: () => import('@/views/goods/addRestrictionAgent/index'),
        //     name: 'addRestrictionAgent',
        //     hidden: true,
        //     meta: { title: '添加控销商品代理' }
        // },
        // {
        //     path: 'addGoods',
        //     component: () => import('@/views/goods/add/index'),
        //     name: 'addGoods',
        //     hidden: true,
        //     meta: { title: '添加商品' }
        // },
        // {
        //     path: 'saleRestrictionSuppliers',
        //     component: () => import('@/views/goods/saleRestrictionSuppliers/index'),
        //     name: 'saleRestrictionSuppliers',
        //     meta: { title: '供应商限销管理'}
        // },
        // {
        //     path: 'saleRestrictionSuppliers/detail',
        //     component: () => import('@/views/goods/saleRestrictionSuppliers/detail'),
        //     name: 'saleRestrictionSuppliersDetail',
        //     hidden: true,
        //     meta: { title: '供应商限销管理详情'}
        // },
        // {
        //     path: 'saleRestrictionSuppliers/detail/addProductAndPhamacy',
        //     component: () => import('@/views/goods/saleRestrictionSuppliers/detail/addProductAndPhamacy'),
        //     name: 'addProductAndPhamacy',
        //     hidden: true,
        //     meta: { title: '添加产品与药店配置'}
        // },
        // {
        //     path: 'saleRestrictionSuppliers/detail/addProductAndArea',
        //     component: () => import('@/views/goods/saleRestrictionSuppliers/detail/addProductAndArea'),
        //     name: 'addProductAndArea',
        //     hidden: true,
        //     meta: { title: '添加产品与区域配置'}
        // },
    ]
}]
export default goodsRouter